package com.sneaker.shower.mapstruct;

import com.sneaker.shower.entity.domain.user.UserReceiveInfoDO;
import com.sneaker.shower.entity.dto.UserReceiveInfoDTO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper(componentModel = "spring")
public interface UserReceiveMapstruct {

    UserReceiveMapstruct INSTANCE = Mappers.getMapper(UserReceiveMapstruct.class);

    UserReceiveInfoDTO do2DTO(UserReceiveInfoDO userReceiveInfoDO);

    @Mapping(target = "guid", ignore = true)
    UserReceiveInfoDO dto2DO(UserReceiveInfoDTO userReceiveInfoDTO);

    List<UserReceiveInfoDTO> doList2DTOList(List<UserReceiveInfoDO> userReceiveInfoDOS);
}
